package day013.bigInteger;

import java.math.BigInteger;

public class BigIntegerDemo {
    public static void main(String[] args) {
        BigInteger bigInteger1 = new BigInteger("2147483648");
        BigInteger binInteger2 = new BigInteger("2");
        BigInteger add = bigInteger1.add(binInteger2);
        System.out.println(add);

        System.out.println("=============================");

        BigInteger subtract = bigInteger1.subtract(binInteger2);
        System.out.println(subtract);

        System.out.println("=============================");

        BigInteger multiply = bigInteger1.multiply(bigInteger1);
        System.out.println(multiply);

        System.out.println("=============================");

        BigInteger divide = bigInteger1.divide(binInteger2);
        System.out.println(divide);
    }
}
